package com.ax.associator.store.dao;

import com.ax.associator.store.domain.PrescriptionMast;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface PrescriptionMastMapper {
    int deleteByPrimaryKey(Long prescriptionId);

    int insert(PrescriptionMast record);

    int insertSelective(PrescriptionMast record);

	/**
	 * 会员问诊记录
	 * @param prescriptionId
	 * @return
	 */
    List<PrescriptionMast> queryMemberProfile(@Param("associatorId") Long associatorId);

    int updateByPrimaryKeySelective(PrescriptionMast record);

    int updateByPrimaryKey(PrescriptionMast record);
    /**
	 * 查看个人处方详情(或全部)*医生或者系统药监
	 * 
	 * @param PrescriptionMast record
	 *           
	 * @return List<PrescriptionMast>
	 */
    List<PrescriptionMast> queryPrescriptionMapper(Map<String, Object> map);

    /**
	 * 分页总计数
	 *
	 * @param Map<String,Object> map
	 *
	 * @return Integer
	 */
    Integer count(Map<String, Object> map);
}